package com.qdxwx.data.service.picture;

import com.qdxwx.common.page.PageRequest;
import com.qdxwx.models.picture.Picture;
import com.qdxwx.models.picture.PictureQuery;

import java.util.List;

/**
 *
 * Qdx NetSchool Platform
 * @author qdxwx
 * @updateTime 2022/5/25
 * @description
 */
public interface PictureService {

    int insert(Picture picture);

    Picture get(int id);

    List<Picture> getList(PictureQuery picture, PageRequest page);

    int count(PictureQuery picture);

    int update(Picture picture);

    int deleteById(int id);

    //浏览数 +1
    int updateView(int id);

    //下载买数 +1
    int updateDown(int id);

    List<Picture> getListByAlbumId(int albumId, PageRequest page);

    int countByAlbumId(int albumId);
}
